package com.di.base.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "storage-service")
public interface StorageFeignClient {

    @GetMapping("/storage/decrease")
    void decrease(@RequestParam("productId") String productId, @RequestParam("count") Integer count);
}
